main method interview questions